﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CookComputing.XmlRpc;

namespace DNA.Mvc.Publishing.Services
{
    internal class XmlRpcExcpetionFactory
    {
        internal static XmlRpcFaultException UserUnvalidated()
        {
            return new XmlRpcFaultException(0, "User is not valid!");
        }

        internal static XmlRpcFaultException NotSupport()
        {
            return new XmlRpcFaultException(0, "User is not valid!");
        }

        internal static XmlRpcFaultException PostNotFound()
        {
           return new XmlRpcFaultException(404, "Post not found.");
        }

        internal static XmlRpcFaultException NullCategoryName()
        {
            return new XmlRpcFaultException(404, "Category name could not be null.");
        }


    }
}
